package com.openingedu.mba.util;

/**
 * @file MD5.java
 * @brief (用于文件的简易说明)
 * 
 *        详细说明...
 * 
 * @author Administrator
 * 
 * @date 2012-12-4 下午08:13:43
 * 
 * @version 1.0.0
 * 
 * @warning
 * 
 * @par 需求
 * 
 *      Revision History - 2012-12-4: change content for what reason -
 *      2012-12-4: change content for what reason
 ****************************************************************************************/
public class MD5 {
	public static String className = MD5.class.getName();

	public static String encryptHex(String data) {
		return DigestUtils.md5Hex(data);
	}

	public static byte[] encrypt(String data) {
		return DigestUtils.md5(data.getBytes());
	}

}
